import Vue from 'vue'

/*引用全局布局*/
import header from '@/components/header'
Vue.component('m-header',header);
/*引入全局vant*/
import { Icon,Button,Toast  } from 'vant';
Vue.use(Icon);
Vue.use(Button);

Vue.prototype.$Toast = (message,onClose) => Toast({message,onClose,forbidClick: true});
Vue.prototype.$Loading = (message) => Toast.loading({duration: 0,message,forbidClick: true});
Vue.prototype.$hideLoading = () => Toast.clear();
